﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UIControls
{
   public  interface IUIControl
    {
       string LabelText { get; }
    }
   public static class ControlExtendMethod
   {
       public static void BindTo(this TextBoxBase control, object obj, string propertyName)
       {
           control.DataBindings.Add("Text", obj, propertyName);
       }
   }
}
